package com.cjt.chat;

import com.cjt.chat.service.WebSocketServer;
import io.github.asleepyfish.annotation.EnableChatGPT;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;

/**
 * @author cjt
 * @since 2024/3/15
 */
@SpringBootApplication
@MapperScan(value = "com.cjt.chat.mapper")
@EnableChatGPT
public class Application {
    public static void main(String[] args) {
        ApplicationContext applicationContext = SpringApplication.run(Application.class, args);
        WebSocketServer.setApplicationContext(applicationContext);
    }
}
